<#include "common/header.ftl"  />
</head>
<body data-type="generalComponents">

<#include "common/page_top.ftl" />

<div class="tpl-page-container tpl-page-header-fixed">
    <#include "common/menu.ftl" />
    <div class="tpl-content-wrapper">
        <div class="tpl-content-page-title">
            Amaze UI 表单
        </div>
        <ol class="am-breadcrumb">
            <li><a href="/admin" class="am-icon-home">首页</a></li>
            <li><a href="/admin/settings">网站设置</a></li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold">
                    <span class="am-icon-code"></span> 网站设置
                </div>
                <div class="tpl-portlet-input tpl-fz-ml">
                    <div class="portlet-input input-small input-inline">
                        <div class="input-icon right">
                            <i class="am-icon-search"></i>
                            <input type="text" class="form-control form-control-solid" placeholder="搜索..."> </div>
                    </div>
                </div>


            </div>
            <div class="tpl-block ">

                <div class="am-g tpl-amazeui-form">


                    <div class="am-u-sm-12 am-u-md-9">
                        <form action="/admin/settings/save" class="am-form am-form-horizontal" method="post" enctype="multipart/form-data" >
                            <div class="am-form-group">
                                <label for="web-name" class="am-u-sm-3 am-form-label">网站名称</label>
                                <div class="am-u-sm-9">
                                    <input type="text" value="${options[0].optionValue}" name="webName" id="web-name" placeholder="网站名">
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label for="user-intro" class="am-u-sm-3 am-form-label">简介 / Intro</label>
                                <div class="am-u-sm-9">
                                    <textarea name="introduce" class="" rows="5" id="user-intro" placeholder="输入网站介绍">${options[3].optionValue}</textarea>
                                    <small>250字以内写出你的一生...</small>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label  class="am-u-sm-3 am-form-label">LOGO <span class="tpl-form-line-small-title">Image</span></label>
                                <div class="am-u-sm-9">
                                    <div class="am-form-group am-form-file">
                                        <div class="tpl-form-file-img">
                                            <#if (options[2].optionValue)?? && options[2].optionValue !="" >
                                                <img style="width: 80px" src="${options[2].optionValue}" alt="">
                                            <#else >
                                                <img style="width:80px" data-id="2" src="/resource/assets/img/user01.png" alt="">
                                            </#if>
                                        </div>
                                        <button type="button" class="am-btn am-btn-danger am-btn-sm">
                                            <i class="am-icon-cloud-upload"></i> 上传LOGO</button>
                                        <input name="file" id="doc-form-file" type="file" multiple>
                                    </div>

                                </div>
                            </div>

                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <button type="submit" class="am-btn am-btn-primary">保存添加</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

</body>
<#include "common/footer.ftl" />
</html>